﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public class PictureInfoService_Design:IPictureInfoService
    {
        public Task<IEnumerable<AreaWeatherPicture>> QueryAreaWeatherPictures(int? townId)
        {
            return Task.Run(() =>
            {
                return new List<AreaWeatherPicture> {
                    new AreaWeatherPicture{
                        WeatherPicId = 1,
                        Town =  new Town{ TownId=1},                   
                        Weather = "多云",
                        Temperature = 12.5m,
                        PictureURL = "http://pic/123.png"
                    }
                }.AsEnumerable();
            });
        }
        public Task<int> UploadWeatherPicture(AreaWeatherPicture areaWeatherPicture,string filePath)
        {
            throw new NotImplementedException();
        }

        public Task<int> DeleteAreaWeatherPicture(List<int> weatherIds)
        {
            throw new NotImplementedException();
        }
    }
}
